package com.bmft;

import com.bmft.mapper.DiyCarPlateMapper;
import com.bmft.pojo.DiyCarPlate;
import com.bmft.service.InsertService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Author Jarvan
 * @create 2020/9/1 14:30
 */
@SpringBootTest
public class MPTestenvourivment {
    @Autowired
    DiyCarPlateMapper diyCarPlateMapper;
    @Test
    public void test(){
        List<DiyCarPlate> diyCarPlates = diyCarPlateMapper.selectList(null);
        for (DiyCarPlate diyCarPlate : diyCarPlates) {
            System.out.println(diyCarPlate);
        }
    }
    /**
     *测试插入
     */
    @Autowired
    InsertService insertService;
    @Test
    public void testinsert(){
        String s = "fdas fdsaf  fsd dfsa";
        insertService.insert(s.split(" "));
    }

}
